package uk.org.landeg.euler.problems.lib;

public class StringsLib {
	public static int wordScore (String word) {
		char[] chars = word.toUpperCase().toCharArray();
		int score = 0;
		for (char ch : chars) {
			score  += (int)ch - (int)'A' + 1;
		}
		return score;
	}
}
